<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Book Submission form</title>
<link rel="stylesheet" type="text/css" href="quotation.css" />
<script type="text/javascript">

function checkform()
{
  	if (document.form.last_name.value=='')
    {
    alert('A last name must be entered');return false;
	}
	else if (document.form.medium_title.value=='')
	{
	alert('A medium must be selected');return false;
	}
	else if (document.form.work_title.value=='')
	{
	alert('A work must be entered');return false;
	}
	else if (document.form.quotation.value=='')
	{
	alert('A quotation must be entered');return false;
	}
	else
	{
	return true;
	}
}
</script>


</head>

<body>
<div id="centeredmenu">
   <ul>
      <li><a href="http://www.quotationaday.com/index.php">Home</a></li>
      <li><a href="http://quotationaday.com/secure/insertformprivate.html" class="active">Submissions</a></li>
      <li><a href="http://www.quotationaday.com/qad/search.php">Search</a></li>
      <li><a href="http://www.quotationaday.com/qad/about.html">About</a></li>
   </ul>
</div>
<h1>
<img class="banner" height="120px" width="780px" alt="Quotation a Day" src="../sitebanner.png"/>
</h1>
<p>
Please note that all fields on this page are required unless marked otherwise. Hover over field names for an explanation. 
</p>

<p>
<form action="insertnew.php" method="post"
 onSubmit="return checkform()" name="form"> 

  <p title="First name of the author, tv character, movie character or director, musician etc.">First name:
  <input type="text" name="first_name" />
  </p>
  <p title="Last name of the author, tv character, movie character or director, musician etc. Also used for band names">Last name:
  <input type="text" name="last_name" />
  </p>
   <p title="The medium type, e.g. film, tv">Medium:
  <select name="medium_title" />
  	<option value="Book">Book</option>
	<option value="Poem">Poem</option>
    <option value="Play">Play</option>
	<option value="Song">Song</option>
    <option value="Television">Television</option>
    <option value="Film">Movies</option>
	<option value="Other text">Other - text</option>
	<option value="Other audio">Other - audio</option>
	<option value="Other">Anything else</option>
      
  </select>
  </p>
  <p title="The name of the book, poem, movie, song or episode name for tv shows">Work [if no work, enter 'N/A']:
  <input type="text" name="work_title" value="N/A" />
  </p>
  <p title="The name of the book of poetry, album, or tv show">Major Work [optional]:  
  <input type="text" name="major_work_title" />
  </p>
  <p title="The language of the work">Language:  
  <input type="text" name="language" />
  </p>
  <p title="The original language of the work (if the work is a translation">Original Language [optional]:  
  <input type="text" name="language" />
  </p>
  <p title="The publication year">Year:  
  <input type="text" name="year" />
  </p>
  <p title="The publisher of the work">Publisher:  
  <input type="text" name="publisher" />
  </p>
  <p title="The major publisher">Major Publisher:  
  <input type="text" name="owner_publisher" />
  </p>
  <p title="The ISBN of the work">ISBN:  
  <!-- needs to be validated once trimmed of '-' symbols !-->
  <input type="text" name="isbn" />
  </p>
  <p title="The purchase location">Purchase location:  
  <input type="text" name="purchase_location" />
  </p>
  <p title="The purchase country">Country:  
  <input type="text" name="country" />
  </p>
    <p> 
    <input type="submit" value="Submit record"/>
  </p>
</form>
</p>


<p>

Thanks for submitting! All submissions will be held in temporary status before being published to the site at the administrator's discretion. IPs submitting offensive or inappropriate content will be blocked<br/><br/>
<a href="http://quotationaday.com">Home</a> <br/>
</p>
<p>Questions, comments, bug reports, edit requests? <br/>
Contact the <a href="mailto:admin@quotationaday.com?subject=Quotation%20a%20Day">Administrator</a></p>

</body>
</html>
